// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   UserServiceImpl.java

package com.hfstu.pms.dataaccess.service.impl;

import com.hfstu.framework.core.orm.Page;
import com.hfstu.framework.core.orm.PageRequest;
import com.hfstu.pms.dataaccess.dao.IUserDao;
import com.hfstu.pms.dataaccess.service.IUserService;
import com.hfstu.pms.model.User;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

public class UserServiceImpl
	implements IUserService
{

	private IUserDao userDao;

	public UserServiceImpl()
	{
		userDao = null;
	}

	public User save(User entity)
	{
		return (User)userDao.save(entity);
	}

	public User update(User entity)
	{
		return (User)userDao.update(entity);
	}

	public User saveOrUpdate(User entity)
	{
		return (User)userDao.saveOrUpdate(entity);
	}

	public void delete(String id)
	{
		userDao.delete(id);
	}

	public void delete(User entity)
	{
		userDao.delete(entity);
	}

	public User getById(String id)
	{
		return (User)userDao.getById(id);
	}

	public List getByIds(String ids[])
	{
		return userDao.getByIds(ids);
	}

	public List findAll()
	{
		return userDao.findAll();
	}

	public List findListByCondition(Map filterPropertyMap, Map sortValueMap)
	{
		return userDao.findListByCondition(filterPropertyMap, sortValueMap);
	}

	public Page findPageByCondition(PageRequest pageRequest, Map filterPropertyMap, Map sortValueMap)
	{
		return userDao.findPageByCondition(pageRequest, filterPropertyMap, sortValueMap);
	}

	public User checkUser(String userName, String password)
	{
		return userDao.checkUser(userName, password);
	}

	public IUserDao getUserDao()
	{
		return userDao;
	}

	public void setUserDao(IUserDao userDao)
	{
		this.userDao = userDao;
	}

	public volatile Object getById(Serializable serializable)
	{
		return getById((String)serializable);
	}

	public volatile Object save(Object obj)
	{
		return save((User)obj);
	}

	public volatile Object saveOrUpdate(Object obj)
	{
		return saveOrUpdate((User)obj);
	}

	public volatile void delete(Object obj)
	{
		delete((User)obj);
	}

	public volatile void delete(Serializable serializable)
	{
		delete((String)serializable);
	}

	public volatile List getByIds(Serializable aserializable[])
	{
		return getByIds((String[])aserializable);
	}

	public volatile Object update(Object obj)
	{
		return update((User)obj);
	}
}
